www.gusucode.com > VC++ 自制SQL数据库,含有服务端+客户端-源码程序 > VC++ 自制SQL数据库,含有服务端+客户端-源码程序/code/Server/User.cpp
//Download by http://www.NewXing.com // User.cpp : implementation file // #include "stdafx.h" #include "miniSQL.h" #include "User.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CUser CUser::CUser() { } CUser::CUser( CString user, CString code, DWORD type, CString descrip = _T("") ) : m_user( user ), m_code( code ), m_type( type ), m_descrip( descrip ) {} CUser::~CUser() { } void CUser::Serialize( CArchive& ar ) { if( ar.IsStoring() ) { ar<<m_user; ar<<m_code; ar<<m_type; ar<<m_descrip; } else { ar>>m_user; ar>>m_code; ar>>m_type; ar>>m_descrip; } }